package com.rpp.demo.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description
 * @Author rpp
 * @Date 2020/12/4 9:51 下午
 */
@Data
@Entity
@Table(name = "tbl_user")
public class User implements Serializable {

    @Id
    @Column(name = "user_id", columnDefinition = "varchar(32) COMMENT '用户ID'")
    private String userId;

    @Column(name = "user_name", columnDefinition = "varchar(32) COMMENT '用户名称'")
    private String userName;

    @Column(name = "create_date", columnDefinition = "datetime NOT NULL COMMENT '创建时间'")
    private Date createDate;

    @Column(name = "update_date", columnDefinition = "datetime NOT NULL COMMENT '更新时间'")
    private Date updateDate;
}
